package 慕课网.homework4;

public class Test {
    public static void main(String[] args) {
        Fruits fru1=new Fruits("又大又圆","好吃不厌");
        Fruits fru2=new Fruits("又大又圆","好吃不厌");
        fru1.eat();
        System.out.println("fru1和fru2的引用比较:"+fru1.equals(fru2));
        System.out.println("-------------------------------------");
        waxberry one=new waxberry("圆形","果味酸甜适中","紫红色");
        System.out.println(one.face());
        one.eat();
        System.out.println(one.toString());
        Banana tow=new Banana("短而稍圆","果肉香甜，可供生食","仙人焦果");
        System.out.println("-------------------------------------");
        tow.advantage();
        System.out.println(tow.advantage("黄色"));
    }
}
